package com.meilele.controller.guoziyang;


import com.meilele.biz.guoziyang.SecBigYpeBusiness;
import com.meilele.entity.guoziyang.SecBigYpe;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.annotation.Resource;
import java.util.List;

@Controller
@RequestMapping("/secBigYpe")
public class SecBigController {
    @Resource
    private SecBigYpeBusiness secBigYpeBusiness;

    @RequestMapping("/list")
    public String findAll(Model model){
        List<SecBigYpe> secBigYpeList = secBigYpeBusiness.findAll();
//        model.addAttribute("list" , secBigYpeList);
        return "second/second";

    }
}
